package com.juc.forkJoinPool.forkJoinPool13;

import java.util.concurrent.ForkJoinPool;
import java.util.concurrent.TimeUnit;

import javax.sql.PooledConnection;

public class Test3 {

	public static void main(String[] args) throws InterruptedException {
		MyRunnable2 myRunnable = new MyRunnable2();
		ForkJoinPool pool = new ForkJoinPool();
		pool.execute(myRunnable);
		pool.shutdown();
		System.out.println("A=" + pool.awaitTermination(1, TimeUnit.SECONDS)  +"  " + System.currentTimeMillis());
		System.out.println("B=" + pool.awaitTermination(1, TimeUnit.SECONDS)  +"  " + System.currentTimeMillis());

	}
}
